body {
    background-color: #191E36;
    color: #FFFFFF;
    font-family: system-ui,-apple-system,segoe ui,Roboto,helvetica neue,noto sans,liberation sans,Arial,sans-serif;
    margin: 0;
}

.text-center {
    text-align: center!important;
}

header .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "trailer-button"
        "content";
    overflow: hidden;
}

.course-wrapper {
    margin: 0;
    max-width: 1080px;
    position: relative
}

@media(min-width: 600px) {
    .course-wrapper {
        margin:0 48px
    }
}

@media(min-width: 1176px) {
    .course-wrapper {
        margin:0 auto;
        width: 100%
    }
}

.mt-5 {
    margin-top: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.h5 {
    display: block;
    font-size: 0.83em;
    margin-block-start: 1.67em;
    margin-block-end: 1.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.course-wrapper nav {
    z-index: 10;
    position: relative;
    padding: 0 1.5rem;
}

.course-wrapper nav .breadcrumbs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow: auto hidden;
}

.course-wrapper nav .breadcrumbs a {
    font-family: Rubik,sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: color .3s ease 0ms;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 4px solid transparent;
    padding: 20px 0 16px;
    white-space: nowrap;
    font-weight: 400;
    color: #fff;
}

.course-wrapper nav .breadcrumbs a:hover {
    text-decoration: underline;
}

.course-wrapper nav .breadcrumbs img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(107deg) brightness(107%) contrast(101%);
}

.steps.grid {
    grid-auto-rows: auto;
    gap: 0 24px;
}

.steps.grid .grid-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    margin: 0;
}

header.course-hero {
    line-height: 1.5;
    overflow: hidden;
    display: grid;
    border: none;
}

header.course-hero .hero-image {
    background-size: cover !important;
    box-sizing: border-box;
    height: 480px;
    left: 0;
    position: absolute;
    right: 0;
    top: -60px;
    z-index: 0;
}

header.course-hero[data-course-code="heartbreak-healing"] .hero-image {
    background: url('/images/course/heartbreak-healing.jpg') no-repeat center center #12191f;

    background-image: image-set(
        url('/images/course/heartbreak-healing.webp') type('image/webp'),
        url('/images/course/heartbreak-healing.jpg') type('image/jpeg')
    );
}

header.course-hero[data-course-code="four-powers-purification"] .hero-image {
    background: url('/images/course/four-powers-purification.jpg') no-repeat center center #12191f;

    background-image: image-set(
        url('/images/course/four-powers-purification.webp') type('image/webp'),
        url('/images/course/four-powers-purification.jpg') type('image/jpeg')
    );
}

header.course-hero[data-course-code="emotional-alchemy-through-sleep"] .hero-image {
    background: url('/images/course/emotional-alchemy.jpg') no-repeat center center #12191f;

    background-image: image-set(
        url('/images/course/emotional-alchemy.webp') type('image/webp'),
        url('/images/course/emotional-alchemy.jpg') type('image/jpeg')
    );
}

@media(min-width: 950px) {
    header.course-hero .hero-image {
        top:0;
        height: 100%;
        background-position: center right;
        background-size: cover;
    }
}

header.course-hero .hero-content {
    grid-area: content;
    padding: 48px 12px 12px;
    z-index: 2;
    background: #191E36;
    background: linear-gradient(0deg, rgba(25, 30, 54, 1) 0%, rgba(25, 30, 54, 1) 30%, rgba(25, 30, 54, 0) 100%);
}

header.course-hero .hero-content h1 {
    margin-bottom: 0.5rem;
}

header.course-hero .hero-content p {
    margin-top: 0;
}

header.course-hero .hero-content .button {
    background: rgba(234, 131, 39, 1);
    background: linear-gradient(90deg,rgba(234, 131, 39, 1) 0%, rgba(234, 131, 39, 1) 100%);
    width: 100%;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
    height: initial;
}

header.course-hero .hero-watch-trailer {
    grid-area: trailer-button;
    margin-top: 140px;
    margin-bottom: 50px;
}

nav.tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(176, 215, 247, 0.18);
}

nav.tabs .tab {
    margin-bottom: 0;
    flex: 1;
    text-align: center;
}

nav.tabs .tab a {
    border-bottom: 4px solid transparent;
    padding: 1rem 0;
    display: block;
    cursor: pointer;
}

nav.tabs .tab a:hover {
    border-color: #d18900;
}

nav.tabs .tab a.active {
    color: #F4C430;
    border-color: #F4C430;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.grid-wrapper {
    margin: 0 1rem;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

@media(max-width: 599px) {
    .grid-2 {
        grid-template-columns:100%;
    }

    .grid-3 {
        grid-template-columns:100%;
    }
}

.grid .grid-item .h5 {
    color: rgba(255,255,255,0.65);
    margin: 0 0 0.5rem 0;
}

.grid .grid-item .h3 {
    margin: 0;
}

.grid .grid-item img {
    width: 100%;
    margin-top: 1rem;
}

.cta-course {
    display: block;
    align-items: flex-end;
    flex-wrap: nowrap;
    box-sizing: border-box;
    justify-content: space-between;
    width: auto;
    font-size: 1.5rem;
    animation: cta-shadow-pulse 2s ease-in-out infinite alternate;
    margin: 1.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #DAA000;
    padding: 0.5rem;
    background-color: #141b22;
}

@media(min-width: 950px) {
    .cta-course {
        padding: 2rem;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 32px
    }
}

@keyframes cta-shadow-pulse {
    0% {
        box-shadow: 0 4px 16px #edac011a
    }

    to {
        box-shadow: 0 4px 32px #edac0133
    }
}

.cta-course .cta-title {
    color: #9CA7B0;
    margin: 0;
    font-size: 1rem;
}

.cta-course p {
    margin: 0;
}

.cta-course .course-price {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-end;
    flex-wrap: nowrap;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    gap: 24px;
    white-space: nowrap;
    margin-bottom: 1rem;
}

.cta-course p.price {
    color: #F2B900;
    text-decoration: underline;
}

.cta-course .button {
    background: rgba(234, 131, 39, 1);
    background: linear-gradient(90deg,rgba(234, 131, 39, 1) 0%, rgba(234, 131, 39, 1) 100%);
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 16px;
    color: #fff;
    margin-top: 0.75rem;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.cta-course ul {
    margin: 0;
    padding: 0;
}

.cta-course ul li {
    list-style: none;
    margin: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
}

.cta-course ul li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
}

.cta-course .cta-benefits {
    line-height: 1.5;
}

.experiences {
    background: #172129;
    margin-top: 1rem;
    padding: 1rem;
    border-top-color: rgba(176, 215, 247, 0.18);
    border-top-style: solid;
    border-top-width: 2px;
    border-bottom-color: rgba(176, 215, 247, 0.18);
    border-bottom-style: solid;
    border-bottom-width: 2px;
    text-align: center;
}

.experiences .testimonial div.name {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
}

@media (min-width: 600px) {
    .carousel {
        max-width: 960px;
    }
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.testimonial {
    box-sizing: border-box;
    flex: 0 0 100%;
    padding: 2rem;
    text-align: left;
}

.nav {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.nav.prev {
    left: 0;
}

.nav.next {
    right: 0;
}

.nav:hover {
    background: rgba(0,0,0,0.05);
    transition: background 0.3s;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s
}

.dot.active {
    opacity: 1;
}

.carousel-track {
    will-change: transform;
}

.course-overview {
    margin: 0 1rem;
    padding-top: 2rem;
}

.course-overview .course-weeks {
    position: relative;
    padding-left: 32px;
}

.course-overview .course-weeks .track {
    position: absolute;
    left: 8px;
    width: 8px;
    height: 100%;
    top: 0;
    bottom: 0;
    background-color: #F2B900;
    border-radius: 8px;
}

.course-overview .course-weeks .week .week-heading {
    position: relative;
}

.course-overview .course-weeks .week .week-heading:after {
    content: "";
    left: -28px;
    top: 0;
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 24px;
    border: 4px solid #F4C430;
    background-color: #fff;
}

.course-overview .panel {
    background-color: #313556;
    border-radius: 15px;
    padding: 1rem;
}

.course-overview .panel .period-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 950px) {
    .course-overview .panel .period-body {
        grid-template-columns: 220px 2fr;
    }
}

.course-overview .week img {
    height: 120px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.catalog .grid {
    align-items: center;
}

.catalog h3 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 40px;
    margin: 0 0 12px;
}

.catalog h4 {
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    margin-top: 16px !important;
    margin-bottom: 12px;
}

.catalog p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.faq {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    margin-top: 0 !important;
    overflow: hidden;
    color: #fff;
}

.faq-title {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #313556;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-title:hover {
    background-color: #313556;
}

.faq-title h4 {
    margin: 0;
    font-size: 16px;
}

.faq-chevron {
    width: 8px;
    height: 8px;
    margin-right: 15px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
    transform: rotate(-135deg);
}

.faq-content {
    max-height: 500px;
    padding: 20px;
    background-color: #313556;
    color: #fff;
    line-height: 1.6;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq.closed .faq-chevron {
    transform: rotate(45deg);
}

.faq.closed .faq-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

footer {
    padding: 0 1rem;
    font-size: 14px;
    color: #B9C3CB;
    border-top: 1px solid rgba(176, 215, 247, 0.18);
}

.lessons-list {
    margin: 0.5rem;
}

@media(min-width: 600px) {
    .lessons-list {
        margin: 1rem;
    }
}

.lesson {
    position: relative;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.lesson:not(:first-child):before {
    border-top: 1px solid rgba(176, 215, 247, 0.18);
    content: "";
    left: 16px;
    position: absolute;
    top: 0;
    width: calc(100% - 32px);
}

.lesson .lesson-thumb {
    margin-bottom: 0.5rem;
    display: flex;
    flex: 0 0 100%;
}

.lesson .lesson-thumb img {
    width: 100%;
    height: 210px;
    justify-self: center;
    object-fit: cover;
}

@media(min-width: 600px) {
    .lesson .lesson-thumb {
        flex: initial;
    }

    .lesson .lesson-thumb img  {
        width: 200px;
        height: auto;
    }
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-info .duration {
    color: #787f82;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
}

.lesson-info h4 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.lesson-info .description {
    font-size: 14px;
}

.courses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.courses-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-page .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #F4C430;
}

.courses-page .section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(244, 196, 48, 0.2);
    border-color: #F4C430;
    color: #F4C430;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #242a47 0%, #1f2538 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    height: 100%; /* Fills the anchor tag */
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.course-card:hover {
    border: 2px solid #F4C430;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(244, 196, 48, 0.2);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%; /* Important for grid alignment */
}

.course-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(244, 196, 48, 0.95);
    color: #191E36;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
}

.course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem; /* Reduced margin to fit button */

    /* The Magic: Line Clamping */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.course-description.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.read-more-btn {
    background: none;
    border: none;
    color: #F4C430;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-decoration: underline;
    align-self: flex-start;
    z-index: 10; /* Ensure it sits above the card link layer */
    position: relative;
}

.read-more-btn:hover {
    color: #fff;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-experience {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F4C430;
}

.course-btn {
    background: linear-gradient(90deg, #EA8327 0%, #EA8327 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.course-btn:hover {
    background: linear-gradient(90deg, #d17523 0%, #d17523 100%);
    transform: translateX(2px);
}
